interface Ad{
    public void showAd();
    public String getCorpName();
 }
class AdBoard{
    public void show (Ad adver){
       System.out.println(adver.getCorpName()+"guangkaoci");
       adver.showAd();
    }
}
class White implements Ad{
  public void showAd(){
      System.out.println("@@@@@@@@@@@@@@@@");
      System.out.printf(" 飞机中的战斗机 \n");
      System.out.println("@@@@@@@@@@@@@@@@");
  }
  public String getCorpName(){
      return "白云公司";
  }
}
class Black implements Ad{
   public void showAd(){
       System.out.println("*****************");
       System.out.printf("劳动是爹，土地是妈\n");
       System.out.println("******************");
    }
    public String getCorpName(){
       return "黑土公司";
    }
}
public class Example6_6{
   public static void main(String args[]){
       AdBoard board = new AdBoard();
       board.show(new Black());
       board.show(new  White());
   }
}
